/**
 * Author: huangzhiyang
 * Date: 2016/7/15 16:07
 * Description: ""
 */
require("./css/zft/common.scss");
var ZFT = window["ZFT"] || (window["ZFT"]={}),
    Util = ZFT["Util"] || (ZFT["Util"] = {}),
    Config = ZFT["Config"] || (ZFT["Config"] = {});

Util["Class"] = require("./js/util.class");
Util["Each"] = require("./js/util.each");
Util["ParseTemplate"] = require("./js/util.parseTemplate");
Util["PubSub"] = require("./js/util.pubsub");
Util["Ajax"] = require("./js/util.ajax");
Util["Placeholder"] = require("./js/util.placeholder");
Util["UrlParse"] = require("./js/util.url.parse.query");
Util["Validate"] = require("./js/util.validate");
Util["VCode"] = require("./js/util.vcode");
Util["getToken"] = require("./js/util.get.token");
Util["Promise"] = require("./js/util.promise");
Util["Extend"] = require("./js/util.extend");
Util["MinixParams"] = require("./js/util.minix.params");  //很早以前的，不建议使用，请使用minix替代
Util["Mixin"] = require("./js/util.mixin");
Util["Type"] = require("./js/util.type");
Util["Prefix"] = require("./js/util.prefix");
Util["BindScope"] = require("./js/util.bindscope");
Util["isEmptyObject"] = require("./js/util.isEmptyObject");
Util["ImgLoader"] = require("./js/util.imageLoader");
Util["winWidthHeight"] = require("./js/util.window.width.height");
Util["Browser"] = require("./js/util.browser");
Util["STip"] = require("./js/util.simple.tip");
Util["getDtype"]=require("./js/util.getdtype");
Util["getPermission"]=require("./js/util.getPermission");

Config["Api"] = require("./js/config.api");
Config["Ajax"] = function(){
    var fn = new Function;
    return{
        loading : fn,
        complete : fn,
        success : fn,
        empty : fn,
        fail : fn,
        error : fn,
        timeout : fn,
        serverError : fn
    }
};

ZFT["Api"] = require("./Api/api.base");

ZFT["AJAX_ERROR_TEXT"] = "请求出错，请稍后重试";
ZFT["AJAX_TIMEOUT_TEXT"] = "请求超时，请稍后重试";
ZFT["AJAX_LOADING_TEXT"] = "努力加载中，请稍后...";
ZFT["AJAX_COMPLETE_TEXT"] = "请求完成";
ZFT["LOADING_IMG_GIF"] = "http://static.12301.cc/assets/build/images/gloading.gif";
ZFT["DEFAULT_IMG"] = "http://www.12301.cc/images/defaultThum.jpg";

// var PageBase = require("./pft.common.pc.base");
// $(function(){ PageBase.init(); })